package com.sunday.boot3.user.center.rest.vo.user.role;

import io.swagger.v3.oas.annotations.media.Schema;
import com.sunday.common.core.gson.GsonUtils;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description: 用户角色关系表 响应 VO
 * @author: zsy
 * @Create: 2024/09/23 10:06:39
 */
@Data
@Schema(description = "PageUserRoleReqVO 对象")
public class PageUserRoleResVO implements Serializable {

    @Schema(description = "主键", required = true)
    private Long id;

    @Schema(description = "用户ID", required = true)
    private Long userId;

    @Schema(description = "角色ID", required = true)
    private Long roleId;

    @Schema(description = "创建时间", required = true)
    private LocalDateTime createTime;

    @Schema(description = "最后修改时间", required = true)
    private LocalDateTime updateTime;


    @Override
    public String toString() {
        return GsonUtils.DEFAULT.toJson(this);
    }
}
